.class public Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;
.super Ljava/lang/Object;
.source "LibSettings.java"

# interfaces
.implements Les/oi0;


# static fields
.field private static b:Z = true

.field private static c:Z = false

.field private static d:Z = true

.field private static e:Ljava/lang/String; = "com.oppo.market"

.field private static f:I = 0x0

.field private static g:Ljava/lang/String; = "com.huawei.appmarket"

.field private static h:I = 0x1

.field private static i:I = 0x1e

.field private static j:I = 0xa

.field private static k:I

.field private static l:I

.field private static volatile m:Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Landroid/content/Context;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 0

    .line 1
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->a:Ljava/lang/ref/WeakReference;

    .line 3
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->b()V

    return-void
.end method

.method private a(I)I
    .locals 1

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    const/4 p1, 0x0

    return p1

    :cond_0
    if-nez p1, :cond_1

    :cond_1
    return v0
.end method

.method public static a(Landroid/content/Context;)Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;
    .locals 2

    .line 1
    sget-object v0, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->m:Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->m:Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;

    invoke-direct {v1, p0}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->m:Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception p0

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p0

    .line 6
    :cond_1
    :goto_0
    sget-object p0, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->m:Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;

    return-object p0
.end method

.method private static b()V
    .locals 2

    .line 1
    :try_start_0
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/core/o;->h()Lcom/bytedance/sdk/openadsdk/core/h/l;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->w()Z

    move-result v1

    sput-boolean v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->b:Z

    .line 3
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->x()Z

    move-result v1

    sput-boolean v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->c:Z

    .line 4
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->y()Z

    move-result v1

    sput-boolean v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->d:Z

    .line 5
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->z()Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->e:Ljava/lang/String;

    .line 6
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->A()I

    move-result v1

    sput v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->f:I

    .line 7
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->B()Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->g:Ljava/lang/String;

    .line 8
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->C()I

    move-result v1

    sput v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->h:I

    .line 9
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->D()I

    move-result v1

    sput v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->i:I

    .line 10
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->E()I

    move-result v1

    sput v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->j:I

    .line 11
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->J()I

    move-result v1

    sput v1, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->k:I

    .line 12
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/h/l;->K()I

    move-result v0

    sput v0, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->l:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    :cond_0
    return-void
.end method

.method private c()Lorg/json/JSONObject;
    .locals 5

    .line 1
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 2
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 3
    :try_start_1
    sget v0, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->k:I

    const/4 v2, 0x1

    if-ne v0, v2, :cond_1

    .line 4
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 5
    new-instance v0, Lorg/json/JSONObject;

    const-string v3, "{ \"anti_hijack_dir\": { \"dir_name\": \"\u5b89\u88c5\\\"%s\\\"\", \"ignore_task_save_path\":1 }, \"anti_hijack_report_config\": { \"report_file_manager_pkg_name\": \"com.oppo.filemanager,com.coloros.filemanager\", \"report_installer_pkg_name\": \"com.android.packageinstaller\" }, \"anti_plans\": [ { \"device_plans\": \"oppo1,oppo2\", \"device_requirements\": [ { \"package_names\": \"com.oppo.filemanager,com.coloros.filemanager\", \"version_black\": [], \"version_white\": [ \"310_3.1.0\", \"3400_3.4.0\", \"3601_3.6.1\", \"330_3.3.0\", \"3606_3.6.6\", \"3605_3.6.5\" ] }, { \"package_names\": \"com.android.packageinstaller\", \"version_black\": [], \"version_white\": [ \"140_3.0.2268\", \"140_3.0.2368\" ] } ], \"type\": \"jump_file_manager\" } ], \"bugfix\": { \"default\": 1 }, \"delete_file_after_install\":1 }"

    invoke-direct {v0, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    goto :goto_0

    .line 6
    :cond_0
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->c()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 7
    new-instance v0, Lorg/json/JSONObject;

    const-string v3, "{ \"anti_hijack_dir\": { \"dir_name\": \"\u5b89\u88c5\\\"%s\\\"\", \"ignore_task_save_path\":1 }, \"anti_hijack_report_config\": { \"report_file_manager_pkg_name\": \"com.android.filemanager\", \"report_installer_pkg_name\": \"com.android.packageinstaller\" }, \"anti_plans\": [ { \"device_plans\": \"vivo1,vivo2\", \"device_requirements\": [ { \"package_names\": \"com.android.filemanager\", \"version_black\": [], \"version_white\": [ \"22_3.0\", \"23_3.0\", \"23_2.5\", \"25_3.2\", \"25_3.1\", \"4030_4.0.3.0\", \"5140_5.1.4.0\", \"5301_5.3.0.1\", \"5211_5.2.1.1\", \"5512_5.5.1.2\", \"5401_5.4.0.1\", \"5205_5.2.0.5\", \"5203_5.2.0.3\", \"5302_5.3.0.2\", \"5312_5.3.1.2\", \"5102_5.1.0.2\", \"5204_5.2.0.4\", \"5314_5.3.1.4\", \"5313_5.3.1.3\", \"5005_5.0.0.5\", \"5112_5.1.1.2\", \"5400_5.4.0.0\", \"5002_5.0.0.2\", \"5130_5.1.3.0\", \"4210_4.2.1.0\", \"5111_5.1.1.1\", \"5311_5.3.1.1\", \"4200_4.2.0.0\" ] }, { \"package_names\": \"com.android.packageinstaller\", \"version_black\": [], \"version_white\": [ \"5_2.5.4.2\", \"5_2.5.4.3\", \"5_3.0.6.1\", \"5_3.0.6.2\", \"5_3.0.8.1\", \"5_3.0.8.0\", \"5_3.0.7.0\", \"5_3.0.9.0\", \"5_4.0.7.0\", \"5_4.0.6.0\", \"5_4.0.10.0\", \"5_5.0.5.0\", \"5_4.0.5.3\", \"5_3.0.7.1\", \"5_4.0.5.5\", \"5_5.0.6.1\", \"5_5.0.6.2\", \"28_5.0.6.5\", \"27_4.0.10.3\", \"26_4.0.10.3\", \"5067_5.0.6.7\", \"5066_5.0.6.6\", \"5068_5.0.6.8\", \"5_2.5.4.0\", \"27_4.0.10.4\", \"5_3.0.6.0\", \"5_2.5.3.0\", \"5_4.0.5.4\", \"5_3.0.3.3\", \"5_3.0.2.7\", \"5_3.0.5.0\", \"5_4.0.5.0\" ] } ], \"type\": \"jump_file_manager\" } ], \"bugfix\": { \"default\": 1 }, \"delete_file_after_install\":1 }"

    invoke-direct {v0, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :cond_1
    move-object v0, v1

    :goto_0
    :try_start_2
    const-string v1, "landing_page_progressbar_visible"

    .line 8
    sget-boolean v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->c:Z

    const/4 v4, 0x0

    if-eqz v3, :cond_2

    const/4 v3, 0x1

    goto :goto_1

    :cond_2
    const/4 v3, 0x0

    :goto_1
    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "download_completed_event_tag"

    const-string v3, "openad_sdk_download_complete_tag"

    .line 9
    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "is_enable_start_install_again"

    .line 10
    sget v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->h:I

    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "start_install_interval"

    .line 11
    sget v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->i:I

    mul-int/lit16 v3, v3, 0x3e8

    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "next_install_min_interval"

    .line 12
    sget v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->j:I

    mul-int/lit16 v3, v3, 0x3e8

    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "hook"

    .line 13
    sget-boolean v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->d:Z

    if-eqz v3, :cond_3

    const/4 v4, 0x1

    :cond_3
    invoke-virtual {v0, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "hook_oppo_arg1"

    .line 14
    sget-object v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->e:Ljava/lang/String;

    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "hook_oppo_arg4"

    .line 15
    sget v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->f:I

    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "hook_huawei_arg1"

    .line 16
    sget-object v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "check_hijack"

    .line 17
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "back_miui_silent_install"

    .line 18
    sget v3, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->l:I

    invoke-direct {p0, v3}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->a(I)I

    move-result v3

    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "download_event_opt"

    .line 19
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "report_download_uncompleted_event"

    .line 20
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_2

    :catchall_0
    move-object v0, v1

    :catchall_1
    :goto_2
    return-object v0
.end method


# virtual methods
.method public a()Lorg/json/JSONObject;
    .locals 1

    .line 7
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->b()V

    .line 8
    invoke-direct {p0}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/a/e;->c()Lorg/json/JSONObject;

    move-result-object v0

    return-object v0
.end method
